package lt.ntec.danblog.server.core;

import lt.ntec.danblog.server.blog.BlogServletModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import lt.ntec.danblog.server.blog.model.objectify.ObjectifyBlogModelModule;
import lt.ntec.danblog.server.core.model.objectify.ObjectifyCoreModelModule;

public class GuiceFactory {

    private static final Injector inj = Guice.createInjector(new BlogServletModule(), new CoreServletModule(),
            new ObjectifyBlogModelModule(), new ObjectifyCoreModelModule());

    public static Injector getInjector() {
        return inj;
    }
}